/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package org.abc;

/**
 * <p>Project: jse2303 - B
 * <p>Powered by webrx On 2023-07-14 10:24:49
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class B extends A {

    void show() {
        System.out.println(num());
        System.out.println(this.num());
        System.out.println(super.num());
        System.out.println("--------");

        System.out.println(pf(6));
        System.out.println(this.pf(6));
        System.out.println(super.pf(6));
    }

    //重写 覆盖
    public int pf(int i) {
        System.out.println("B子类");
        return i * i;
    }

}
